package org.reborn.math

class VectorI(val vec:List[Int]){
  val dimension = vec.size
  def +(o:VectorI):VectorI = {new VectorI((vec,o.vec).zipped.map(_+_))}
  def -(o:VectorI):VectorI = {new VectorI((vec,o.vec).zipped.map(_-_))}
  def *(scalar:Int):VectorI = {new VectorI(vec.map(_*scalar))}
  def /(scalar:Int):VectorI = {new VectorI(vec.map(_/scalar))}
  def apply(position:Int):Int = {vec(position)}
  
  def toArray = vec.toArray
}
